the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayconversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the curre
] = "Nihao"$attr 3[1] = "HI"Gets the length of the array: (count)echo count ();Array type:Indexed array$attr = Array (+/-);Var_dump ($ATTR);Associative arrays$attr 1 = Array ("One" =>1, "=>2")Iterating through an arrayFor loop traversal cannot traverse associative arrayforeach loops (indexes, associations can traverse)foreach (array as variable){The echo variable. }each ()List ($1,$2,$3) = $attr assigns the elements inside the right array to the variables on the leftwhile (list (variable) = each
); Returns the key name of the current cell in the arrayPrev ($arr); Returns the internal pointer in the array back to aNext ($arr); Moves the inner pointer in the array forward oneEnd ($arr); Point the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList
pointer to an array
Current ($arr); Returns the current cell in the arrayPOS ($arr); Returns the current cell in the arrayKey ($arr); Returns the key name of the current cell in the arrayPrev ($arr); Returns the internal pointer in the array back to aNext ($arr); Moves the inner pointer in the array forward oneEnd ($arr); Point the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first celleach ($arr
oneEnd ($arr); Point the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the array3. Conversion between arrays and variablesExtract ($arr); Used to convert the elemen
the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the curre
the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first celleach ($arr), constructs an array that returns a key name/value of the current element of the array, and moves the array pointer forward onelist ($key, $value) =each ($arr); Gets the key name and value of the current element of the array3. Conversion between arrays and variablesextract ($arr); used to convert an element in an array into a
variable nameInternal pointers to arrays:Current ($arr); Returns the cell in the arrayPOS ($arr); Returns the current cell in the arrayKey ($arr); Returns the key name of the current cell in the arrayPrev ($arr); Rewind the internal pointer in the array back to aNext ($arr); Move the inner pointer in the array forward oneEnd ($arr); point the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first cel
the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the curre
cellReset ($arr); point the inner pointer in the array to the first celleach ($arr); Constructs an array of one health name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the health name and value of the current element of the arrayConversions before arrays and variablesExtract ($arr); used to convert elements in an array into variables into the current file, the health name as
the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the curre
the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the curre
); Returns the key name of the current cell in the arrayPrev ($arr); Returns the internal pointer in the array back to aNext ($arr); Moves the inner pointer in the array forward oneEnd ($arr); Point the inner pointer in the array to the last cellReset ($arr; Point the inner pointer in the array to the first celleach ($arr); Constructs an array that returns a key name/value of the current element of the array and moves the array pointer forward oneList
last cellReset ($arr; point the inner pointer in the array to the first cellEach ($arr), constructs an array that returns a key name/value of the current element of the array, and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the current
to the value variable6. Cursor manipulation of arraysCurrent (array variable); = = Remove the pointer to the value of the cell; pointer initialization to the NO. 0 cellKey (array variable); = = Remove the key pointing to the cellNext (array variable); = = Move the pointer to the tail onePrev (array variable); = = Move the pointer to the head oneEnd (array variable); = = Points The pointer over the last cellReset (array variable); + = Resets the point
an arrayCurrent ($arr); Returns the cell in the arrayPOS ($arr); Returns the current cell in the arrayKey ($arr); Returns the key name of the current cell in the arrayPrev ($arr); Rewind the internal pointer in the array back to aNext ($arr); Move the inner pointer in the array forward oneEnd ($arr); point the inner pointer in the array to the last cellReset ($arr; point the inner pointer in the array to the first cellEach ($arr), constructs an array
The key name and value of the arrayArray_values ($arr); Get the value of an arrayArray_keys ($arr); Gets the key name of the arrayArray_flip ($arr); the values in the array are exchanged with the key names (if there are duplicates, the previous one will be overwritten by the following)In_array ("Apple", $arr); Retrieve Apple in an arrayArray_search ("Apple", $arr); Retrieve Apple in an array if there is a return key nameArray_key_exists ("Apple", $arr); Retrieves whether the given key name exist
last cellReset ($arr; point the inner pointer in the array to the first cellEach ($arr), constructs an array that returns a key name/value of the current element of the array, and moves the array pointer forward oneList ($key, $value) =each ($arr); Gets the key name and value of the current element of the arrayConversions between arrays and variablesExtract ($arr); used to convert an element in an array into a variable and import it into the current
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.